package com.hp.controller;


import com.hp.service.PhotoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


@RestController

public class PhotoController {

    @Autowired
    private PhotoService photoService;

    @PostMapping ("/getPhotos")
    public Map<String,Object> getPhotos(int houseId){

        return photoService.getPhoto(houseId);
    }
}
